/*
 * @Author: bug巫师 184179023@qq.com
 * @Date: 2025-04-05 10:35:43
 * @LastEditors: bug巫师 184179023@qq.com
 * @LastEditTime: 2025-04-05 10:46:29
 * @FilePath: \abs.oa\miniprogram\lib\router\router-config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/**
 * 路由配置文件
 * 基于mp-router库的路由配置
 */

// 路由映射表，按照mp-router的格式定义
module.exports = {
  // 路由别名与路径映射
  routeMap: {
    // 主要页面
    'home': {
      type: 'page',
      path: 'projects/oa/pages/default/index/default_index',
    },
    'my': {
      type: 'page',
      path: 'projects/oa/pages/my/index/my_index',
    },
    'my-edit': {
      type: 'page',
      path: 'projects/oa/pages/my/edit/my_edit',
    },
    'search': {
      type: 'page',
      path: 'projects/oa/pages/search/search',
    },
    'task': {
      type: 'tab',
      path: 'projects/oa/pages/task/index/task_index',
    },
    'flow': {
      type: 'page',
      path: 'projects/oa/pages/flow/index/flow_index',
    },
    'knowledge': {
      type: 'page',
      path: 'projects/oa/pages/knowledge/index/knowledge_index',
    },
    'tools': {
      type: 'page',
      path: 'projects/oa/pages/tools/index/tools_index',
    },
    
    // 工作流相关
    'flow-add': {
      type: 'page',
      path: 'projects/oa/pages/flow/add/flow_add',
    },
    'flow-my-list': {
      type: 'page',
      path: 'projects/oa/pages/flow/my_list/flow_my_list',
    },
    'flow-edit': {
      type: 'page',
      path: 'projects/oa/pages/flow/edit/flow_edit',
    },
    'flow-detail': {
      type: 'page',
      path: 'projects/oa/pages/flow/detail/flow_detail',
    },
    'flow-my-checking': {
      type: 'page',
      path: 'projects/oa/pages/flow/my_checking/flow_my_checking',
    },
    'flow-my-checked': {
      type: 'page',
      path: 'projects/oa/pages/flow/my_checked/flow_my_checked',
    },
    'flow-step': {
      type: 'page',
      path: 'projects/oa/pages/flow/step/flow_step',
    },
    
    // 知识库相关
    'knowledge-detail': {
      type: 'page',
      path: 'projects/oa/pages/knowledge/detail/knowledge_detail',
    },
    'knowledge-edit': {
      type: 'page',
      path: 'projects/oa/pages/knowledge/edit/knowledge_edit',
    },
    'knowledge-note': {
      type: 'page',
      path: 'projects/oa/pages/knowledge/note/knowledge_note',
    },
    'knowledge-note-list': {
      type: 'page',
      path: 'projects/oa/pages/knowledge/note_list/knowledge_note_list',
    },
    
    // 工具相关
    'tools-index': {
      type: 'page',
      path: 'projects/oa/pages/tools/index/tools_index',
    },
    'calculator': {
      type: 'page',
      path: 'projects/oa/pages/tools/calculator/calculator',
    },
    'motor-calculator': {
      type: 'page',
      path: 'projects/oa/pages/tools/motor_calculator/motor_calculator',
    },
    'tools-guide': {
      type: 'page',
      path: 'projects/oa/pages/tools/guide/tools_guide',
    },
    'mobx-demo': {
      type: 'page',
      path: 'projects/oa/pages/tools/mobx_demo/mobx_demo',
    },
    
    // 新闻与关于
    'news-index': {
      type: 'page',
      path: 'projects/oa/pages/news/index/news_index',
    },
    'news-detail': {
      type: 'page',
      path: 'projects/oa/pages/news/detail/news_detail',
    },
    'about-index': {
      type: 'page',
      path: 'projects/oa/pages/about/index/about_index',
    },
    'company-detail': {
      type: 'page',
      path: 'projects/oa/pages/about/company_detail/company_detail',
    },
    
    // 其他功能
    'feedback': {
      type: 'page',
      path: 'projects/oa/pages/feedback/index/feedback',
    },
    'contact': {
      type: 'page',
      path: 'projects/oa/pages/contact/index/contact_index',
    },
    
    // PLM相关（系统间跳转使用）
    'plm-home': {
      type: 'external',
      appId: 'wx1234567890abcdef', // PLM小程序的AppID 
      path: 'projects/plm/pages/default/index/default_index',
    }
  }
}; 